package com.yao.component.pictureselector;

import android.content.Context;
import android.graphics.Bitmap;
import android.util.AttributeSet;
import android.view.View;

//import com.nostra13.universalimageloader.core.assist.FailReason;
//import com.nostra13.universalimageloader.core.listener.SimpleImageLoadingListener;
import com.yao.component.pictureselector.photoview.PhotoView;
import com.yao.sdk.glide.GlideUtil;

/**
 * Created by zwj on 2016/1/19.
 */
public class MyPhotoView extends PhotoView {

    public  MyPhotoView (Context context){
        super(context);
    }
    public  MyPhotoView (Context context, AttributeSet attr){
        super(context,attr);
    }
    public  MyPhotoView (Context context, AttributeSet attr, int defStyle){
        super(context,attr,defStyle);
    }

    public void loadImage(String path) {
//        ImageLoader.getInstance(3, ImageLoader.Type.LIFO).loadImage(path,MyPhotoView.this);
//        com.nostra13.universalimageloader.core.ImageLoader.getInstance().loadImage(path, new SimpleImageLoadingListener() {
//            @Override
//            public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {
//
//                MyPhotoView.this.setImageBitmap(loadedImage);
//
//            }
//
//            @Override
//            public void onLoadingFailed(String imageUri, View view, FailReason failReason) {
//                MyPhotoView.this.setImageDrawable(getResources().getDrawable(R.drawable.ic_picture_loadfailed));
//
//            }
//        });

    }


}
